package de.velvettear.squirrel.kernel;

import de.velvettear.squirrel.util.WLANHelper;


public class AccessPoint {

	public String m_sSSID;
	public String m_sBSSID;
	public String m_sCapabilities;
	public String m_sPassword;
	public int m_nFrequency;
	public int m_nLevel;
	public boolean m_bConfigured;
	
	public AccessPoint() {
		
	}
	
	public String getSignalStrength() {
		int level = WLANHelper.wifiManager.calculateSignalLevel(m_nLevel, 4);
		
		switch (level) {
		
		case 0: 	return Statics.SIGNAL_BAD;
		case 1: 	return Statics.SIGNAL_LOW;
		case 2:		return Statics.SIGNAL_GOOD;
		case 3:		return Statics.SIGNAL_EXCELLENT;
		default: 	return null;
		
		}
	}
}
